if ($.inArray(validateSection, ['', 'page_details']) !== -1) {
	// TODO: make nice popups and add messages to messages table
	if ($(':radio[name="page_parent_id"]:checked').length === 0) {
		alert('no page parent selected');
		return false;
	}
	
	oSaveParams.iPageParentId = $(':radio[name="page_parent_id"]:checked:first').val();
	
	oSaveParams.sPageTitle = $('#page_title').val();
	
	if (val_is_empty(oSaveParams.sPageTitle) === true) {
		alert('no page title entered');
		return false;
	}
	
	oSaveParams.sPageMenuTitle = $('#page_menu_title').val();
	
	if (val_is_empty(oSaveParams.sPageMenuTitle) === true) {
		alert('no page menu title entered');
		return false;
	}
	
	
	oSaveParams.iLangId = $('#lang_id').val();
	oSaveParams.iSiteId = $('#site_id').val();
	
	oSaveParams.sPageNews = $(':radio[name="page_news"]:checked').val();
	
	// if we're saying that the page has an external URL
	if ($(':radio[name="page_int_url"]:checked').val() == '1') {
		oSaveParams.sExtUrl = $('#int_url').val();
		
		if (val_is_empty(oSaveParams.sExtUrl) === true) {
			alert('set as a link but not url provided');
			return false;
		}
	
	} else if ($(':radio[name="page_ext_url"]:checked').val() == '1') {
		oSaveParams.sExtUrl = $('#ext_url').val();
		
		if (val_is_empty(oSaveParams.sExtUrl) === true) {
			alert('set as a link but not url provided');
			return false;
		}
		
	} else if ($(':radio[name="page_inherit_content"]:checked').val() == '1') {
		
		oSaveParams.iPageInheritId = $('#page_inherit_content').val();
		
		if (oSaveParams.iPageInheritId == '0') {
			alert('set to inherit content, but no page to inherit from selected');
			return false;
		}
	}
	
	
	oSaveParams.iThumbMediaId = $('#page_thumb_media_id').val();
	
	if (oSaveParams.iThumbMediaId === '') {
		oSaveParams.iThumbMediaId = 0;
	}
	
	if (validateSection === 'page_details') {
		return true;
	}
}